<#--<#include "/sys/_layout.ftl">-->
<#--    <form id="editform" class="jxform" method="post" action="${web.url('/train/modifyPasswordSave')}" data-msgtip="false">-->
<#--        <table class="table jxtable-form">-->
<#--            <tr>-->
<#--                <th class='w-100px'>当前密码</th>-->
<#--                <td>-->
<#--                    <input id="currentPassword" name="currentPassword" class="form-control" maxlength="20"-->
<#--                           data-validate="required: [true,'请输入当前密码']" type="password" autocomplete="off">-->
<#--                </td>-->
<#--            </tr>-->
<#--            <tr>-->
<#--                <th>新密码</th>-->
<#--                <td>-->
<#--                    <input id="newPassword" name="newPassword" class="form-control" type="password" maxlength="20"-->
<#--                           data-validate="required: [true,'请输入新密码']" autocomplete="off">-->
<#--                </td>-->
<#--            </tr>-->
<#--            <tr>-->
<#--                <th>确认密码</th>-->
<#--                <td>-->
<#--                    <input id="confirmPassword" name="confirmPassword" class="form-control" type="password" maxlength="20"-->
<#--                           data-validate="required: [true,'请输入确认密码'],equalTo: ['#newPassword','确认密码必须与新密码输入一致']"-->
<#--                           autocomplete="off">-->
<#--                </td>-->
<#--            </tr>-->
<#--        </table>-->
<#--    </form>-->
<#--    <div class="panel-footer text-right">-->
<#--        <button class="btn btn-primary" type="button" onclick="$('#editform').jxform().submit()">-->
<#--            <i class="fa fa-save"></i> 保存-->
<#--        </button>-->
<#--        <button class="btn btn-default" type="button" onclick="jx.closeDialog()">-->
<#--            <i class="fa fa-sign-in"></i> 取消-->
<#--        </button>-->
<#--    </div>-->
<#--<script>-->
<#--    $('#editform').onFormSuccess(function (e, result) {-->
<#--        top.jx.toastr.success('密码修改成功');-->
<#--        jx.closeDialog();-->
<#--    });-->
<#--</script>-->

<form class="form-horizontal uiform" method="post"
      data-modal="true"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.maSuccess"
      action="/train/modifyPasswordSave">
    <div class="modal-header">
        <button class="close" data-dismiss="modal" type="button" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">修改密码</h4>
    </div>
    <div class="modal-body">
        <input name="__RequestVerificationToken" type="hidden" value="A3Bpi31hygZI6wq34W1s9vAOJXlABuvZUnc8N1Q7AMmSwJcY17o0Pd2vgUPerSkV55gm1Od4UrQyYF6Ss1TldJOJ064TEjxH3hry0vOdCjAkyYl7sxEcYPNBsIc1CMzC0" />
        <input type="hidden" name="__RecordCreate" value="" />
        <div class="alert alert-danger fxhide"></div>

        <div class="form-group">
            <label class="col-sm-3 control-label">当前密码：</label>
            <div class="col-sm-8">
                <input class="form-control" name="currentPwd" type="password"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入当前密码'"
                       autocomplete="off">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">新密码：</label>
            <div class="col-sm-8">
                <input class="form-control" name="newPwd" type="password"
                       data-validate="required: true,maxlength: 50"
                       data-validate-message="required:'请输入新密码'"
                       autocomplete="off">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">确认密码：</label>
            <div class="col-sm-8">
                <input class="form-control" name="confirmPwd" type="password"
                       data-validate="required: true,maxlength: 50,equalTo:'[name=newPwd]'"
                       data-validate-message="required:'请输入确认密码',equalTo:'输入的新密码和确认密码不一致,请重新输入'"
                       autocomplete="off">
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">
            <i class="fa fa-save"></i> 修改
        </button>
        <button class="btn btn-default" type="button" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>